package yuan.duty_chain;

/**
 * @version: 1.0
 * @Description: TODO
 * @author: zZmH
 * @date: 2020/09/14 18:58
 */


public class ProcessContext {

    private String code;
    private Object model;
    private Boolean needBreak;

    @Override
    public String toString() {
        return "ProcessContext{" +
                "code='" + code + '\'' +
                ", model=" + model +
                ", needBreak=" + needBreak +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getModel() {
        return model;
    }

    public void setModel(Object model) {
        this.model = model;
    }

    public Boolean getNeedBreak() {
        return needBreak;
    }

    public void setNeedBreak(Boolean needBreak) {
        this.needBreak = needBreak;
    }

    public ProcessContext() {
    }

    public ProcessContext(String code, Object model, Boolean needBreak) {
        this.code = code;
        this.model = model;
        this.needBreak = needBreak;
    }
}
